﻿@{
    ViewBag.Title = "Home Page";
}
<h2>@ViewBag.Message</h2>
<p>
    To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">
        http://asp.net/mvc</a>.
    <br />
    Now, it's @DateTime.Now.ToLocalTime( ); , We can begin to study MVC3!
</p>
<p>
    We will use the simple manager and fund moduel to show the MVC. The database is
    MySQL, or you can use other one.
</p>
<h3>
    First, we will exercise something about the Razor Engine.
</h3>
<p>
    This code at here;
    <br />
    @@{
    <br />
    var name = User.Identity.Name;<br />
    @@:Current windown account is @@name;<br />
    }<br />
    will disply as below:
    <br />
    @{
        var name = User.Identity.Name;
        @:Current windown account is @name;
    }
    <br />
    * In the other word, we can write the C# code in '@@{} ' directly.
    <br />
    Now, let's try to mark a A-link.
    <br />
    <ul>
        <li>like this : @@Html.ActionLink("Persons", "List", "Person", null, null) @Html.ActionLink("Persons", "List", "Person", null, null)</li>
        <li>or like this:
            @Html.Raw("<a  href=\"@Url.Action(\"List\",\"Person\")\">Persons</a>").ToHtmlString( )
            @*   <xmp><a href="@@Url.Action("List","Person")" >Persons</a></xmp>*@ <a href="@Url.Action("List", "Person")" >
                Persons</a> </li>
    </ul>
    <table border="1">
        <tr>
            <td>
                Request URL
            </td>
            <td>
                Relative Path
            </td>
            <td>
                Full Path
            </td>
            <td>
                HTTP Request Type
            </td>
        </tr>
        <tr>
            <td>@Request.Url
            </td>
            <td>@Request.FilePath
            </td>
            <td>@Request.MapPath(Request.FilePath)
            </td>
            <td>@Request.RequestType
            </td>
        </tr>
    </table>
</p>
